package com.ui.basic.assembler.masterdata;

import java.util.List;

import com.common.basic.base.BaseAssembler;
import com.ui.basic.command.masterdata.CommandCurrency;
import com.ui.basic.ibatis.model.masterdata.TblMCurrencies;

public class CurrencyAssembler implements
		BaseAssembler<TblMCurrencies, CommandCurrency> {

	public CommandCurrency toDto(TblMCurrencies entity) {
		CommandCurrency dto = new CommandCurrency();
		dto.setId(entity.getId());
		dto.setCurrabrev(entity.getCurrabrev());
		dto.setCurrency(entity.getCurrency());
		dto.setHundredsname(entity.getHundredsname());
		dto.setCountryId(entity.getCountryId());
		return dto;
	}

	public List<CommandCurrency> toDtoList(List<TblMCurrencies> listEntity) {

		return null;
	}

	public TblMCurrencies toEntity(CommandCurrency dto) {
		TblMCurrencies entity = new TblMCurrencies();
		entity.setId(dto.getId());
		entity.setCurrabrev(dto.getCurrabrev());
		entity.setCurrency(dto.getCurrency());
		entity.setHundredsname(dto.getHundredsname());
		entity.setCountryId(dto.getCountryId());

		return entity;
	}

}
